package com.ruoyi.order.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 订单对象 order
 * 
 * @author ruoyi
 * @date 2025-05-25
 */
public class Order extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 下单人用户 id */
    @Excel(name = "下单人用户 id")
    private Long userId;

    /** 接单人飞手 id */
    @Excel(name = "接单人飞手 id")
    private Long manipulatorId;

    /** 评价 id */
    @Excel(name = "评价 id")
    private Long reviewId;

    /** 订单内容 */
    @Excel(name = "订单内容")
    private String content;

    /** 下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 订单状态（0 下单未支付 1 下单已支付 2 订单未完成 3 订单已完成 4） */
    @Excel(name = "订单状态", readConverterExp = "0=,下=单未支付,1=,下=单已支付,2=,订=单未完成,3=,订=单已完成,4=")
    private Long status;

    /** 订单价格 */
    @Excel(name = "订单价格")
    private Long price;

    /** 订单类型（0 个人 1 公司） */
    @Excel(name = "订单类型", readConverterExp = "0=,个=人,1=,公=司")
    private Long type;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    public void setManipulatorId(Long manipulatorId) 
    {
        this.manipulatorId = manipulatorId;
    }

    public Long getManipulatorId() 
    {
        return manipulatorId;
    }

    public void setReviewId(Long reviewId) 
    {
        this.reviewId = reviewId;
    }

    public Long getReviewId() 
    {
        return reviewId;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setStartTime(Date startTime) 
    {
        this.startTime = startTime;
    }

    public Date getStartTime() 
    {
        return startTime;
    }

    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }

    public void setPrice(Long price) 
    {
        this.price = price;
    }

    public Long getPrice() 
    {
        return price;
    }

    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("manipulatorId", getManipulatorId())
            .append("reviewId", getReviewId())
            .append("content", getContent())
            .append("startTime", getStartTime())
            .append("status", getStatus())
            .append("price", getPrice())
            .append("type", getType())
            .append("createBy", getCreateBy())
            .append("updateBy", getUpdateBy())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
